<%@page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="java.sql.*, btsm.bean.sqlUsersWork"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%
        sqlUsersWork mypage = new sqlUsersWork("users", "");
%>
<%String titlename="用户管理";%>
<HTML>
<HEAD>
<TITLE>新建光缆</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="Admin_Style.css" type=text/css rel=stylesheet>
</HEAD>
<BODY style="margin:2px; overflow:auto">
<script language="javascript" src="jscheck.js">
</script>
<script>
    <!--
    function tst(obj0,obj1,obj2){
        obj0.style.border="1 "+obj1+" solid";
        obj0.style.background=obj2;
    }
    //-->
	function btnReturn(){
	     document.frmReturn.submit();
	}
</script>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    function textCounter(field, maxlimit) {
        if (field.value.length > maxlimit)
            field.value = field.value.substring(0, maxlimit);
    }
    //-->
</SCRIPT>
<TABLE cellSpacing="0" align="center" cellPadding="0" width="100%" border=0>
  <TBODY>
  
  <TR>
    <TD><TABLE class=border cellSpacing=1 cellPadding=2 width="100%" align="center" border="0">
        <FORM name="Jz_myform" action="ser_users" method="post">
          <!--添加数据表单开始cs.jsp-->
          <%String strsnid = (String) request.getAttribute("snid");
        	mypage.wheresw = strsnid;
	        ResultSet rsz = mypage.sc();
    	    while (rsz.next()) {
                    %>
          <TBODY id=Tabs>
            <TR class=tdbg>
              <TD class=tdbg5 height="26">用户名：</TD>
              <TD height="26"><%=rsz.getString(1)%>
                <input type="hidden" name="T1" size="46" class=text2d value="<%=rsz.getString(1)%>" maxlength="12" onBlur="checkQuote(this.value,this)">
              </TD>
              <TD class=tdbg5 height="26">&nbsp;</TD>
              <TD height="26">&nbsp;</TD>
            </TR>
            <TR class=tdbg>
              <TD class=tdbg5 height="26">密码：</TD>
              <TD height="26"><input type="password" name="T1" id="pwdConfirma" size="20" maxlength="12" onBlur="checkQuote(this.value,this)" value="md5passwordnc"></TD>
              <TD class=tdbg5 height="26">确认密码：</TD>
              <TD height="26"><input type="password" name="pwdConfirmb" id="pwdConfirmb" size="20" maxlength="12" onBlur="checkQuote(this.value,this)" value="md5passwordnc"></TD>
            </TR>
            <TR class=tdbg>
              <TD class=tdbg5 height="26">权限：</TD>
              <TD height="26"><input type="text" name="T1" id="ocbtscs" size="20" maxlength="12" onBlur="checkQuote(this.value,this)" value="<%=rsz.getString(3)%>"></TD>
              <TD class=tdbg5 height="26">皮肤：</TD>
              <TD height="26"><input type="text" name="T1" id="ocbtsce" size="20" maxlength="12" onBlur="checkQuote(this.value,this)" value="<%=rsz.getString(4)%>"></TD>
            </TR>
            <tr class=tdbg>
              <TD class=tdbg5 height="26">真实姓名：</TD>
              <TD height="26"><input type="text" name="T1" size="20" maxlength="11" value="<%=rsz.getString(5)%>">
              </TD>
              <TD class=tdbg5 height="26">联系电话：</TD>
              <TD height="26"><input type="text" name="T1" size="20" maxlength="11" value="<%=rsz.getString(6)%>"></TD>
            </tr>
            <tr class=tdbg>
              <TD class=tdbg5 height="18">身份证号：</TD>
              <TD height="18"><input type="text" name="T1" size="20" value="<%=rsz.getString(7)%>"></TD>
              <TD class=tdbg5 height="18">家庭住址：</TD>
              <TD colspan="2" height="18"><input type="text" name="T1" size="20" maxlength="20" onBlur="checkQuote(this.value,this)" value="<%=rsz.getString(8)%>"></TD>
            </tr>
            <TR class=tdbg>
              <TD class=tdbg5 height="18">禁止登录：</TD>
              <TD height="18" colspan="3"><input type="text" name="T1" size="60" value="<%=rsz.getString(9)%>"><input type="hidden" name="T1" value=""></TD>
            </TR>
          
          <TR class=tdbg>
            <TD class=tdbg5 height="51" colspan="4"><p align="center">
                <%
            String jspName = request.getRequestURI();
            jspName = jspName.substring(jspName.lastIndexOf("/") + 1);
                                    %>
                <input type="hidden" name="filesnames" value=<%=jspName%>>
                <input type="hidden" name="seraction" value="sermod">
                <input type="submit" value="保存" name="JzB1" style="width:72; height:25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')">
                &nbsp;&nbsp;&nbsp;&nbsp;
                <input type="reset" value="重置" name="JzB2" style="width:72; height:25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')">
                &nbsp;&nbsp;&nbsp;&nbsp;
                <input type="button" value="返回" name="JzB4" style="width:72; height:25" class=tx_button onMouseOver="tst(this,'blue','#ffffff')" onMouseOut="tst(this,'black','#e8e7fe')" onClick="btnReturn();">
            </TD>
          </TR>
          </TBODY>
          
          <%
       					 }

			mypage.dbConClose();
                        %>
        </FORM>
      </TABLE>
      <FORM name="frmReturn" action="/btsm/nnlist_users.jsp" method="post">
      </FORM></TD>
  </TR>
  </TBODY>
</TABLE>
</BODY>
</HTML>
